const { VantResolver } = require('unplugin-vue-components/resolvers');
const ComponentsPlugin = require('unplugin-vue-components/webpack');
const { defineConfig } = require('@vue/cli-service');
const { resolve } = require('path')
module.exports = defineConfig({
  transpileDependencies: true
})


module.exports = {
  configureWebpack: {
    plugins: [
      ComponentsPlugin({
        resolvers: [VantResolver()],
      }),
    ],
  },
  chainWebpack(config) {
    config.resolve.alias
        .set('@request', resolve(__dirname, './src/request'))
  }
};
